﻿namespace CocoaAni.Net.WebSockets.Server.Attributes;

public class WebSocketControllerAttribute : Attribute
{
    public static string PathIsSelfName { get; set; } = "[controller]";
    public string Path { get; set; }

    public WebSocketControllerAttribute(string path)
    {
        Path = path ?? PathIsSelfName;
    }

    public WebSocketControllerAttribute()
    {
        Path = PathIsSelfName;
    }
}